package com.hunan.yllxy.repostitory.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hunan.yllxy.repostitory.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 刘华
 * @since 2025-06-16
 */
public interface UserInfoDao extends IService<UserInfo> {

    UserInfo findByAccount(String username);

    List<UserInfo> findByRole(String roleId);

    Page<UserInfo> findByRolePageQuery(String roleId, Page<UserInfo> page);
}
